<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title;?></title>
<?php echo $header;?>
<script type="text/javascript">
$(document).ready(function(){
	// 上传附件
	$('#b_upload').click(function(){
		$.dialog.open('<?php echo base_url('upload/show/image/path');?>',{title:'<?php echo lang('com_title_upload_file');?>',width:400,height:100,lock:true});
	});
});
</script>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="table_top_left" width="17" valign="top"></td>
		<td class="table_top_middle" valign="top"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
				<tr>
					<td height="31" align="left"><div class="titlebt"><?php echo $page_label;?></div></td>
				</tr>
			</table></td>
		<td class="table_top_right" width="16" valign="top"></td>
	</tr>
	<tr>
		<td class="table_left_side" height="71" valign="middle"></td>
		<td valign="top" bgcolor="#F7F8F9">
		<table width="100%" height="138" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td valign="top">
				<table width="98%" border="0" align="center" cellpadding="0"
					cellspacing="0">
					<tr>
						<td align="left" class="left_txt"><?php echo $nav_label,$title;?></td>
					</tr>
					<tr>
						<td>
						<form id="f_ad_customer" name="f_ad_customer" method="post" action="<?php echo base_url('ad/customer_edit_action');?>">
						<table width="100%" class="list" cellpadding="0"
							style="border-collapse: collapse" border="1"
							bordercolor="#BFC4CA">
							<tr>
								<th colspan="2" height="25" bgcolor="#EEF2FB"><?php echo $title;?></th>
							</tr>
							<tr>
								<td width="18%" height="25" align="right"><?php echo lang('ad_customer_name');?></td>
								<td width="83%" height="25" align="left"><input name="customer"
									type="text" id="customer" value="<?php echo $ad_customer['customer'];?>" size="40" maxlength="20" />
									<span class="tip">*<?php printf(lang('com_tip_word_limit'), 20);?></span></td>
							</tr>
							<tr>
								<td width="18%" align="right" height="25"><?php echo lang('ad_place');?></td>
								<td width="83%" height="25" align="left">
									<select name="placeid" id="placeid">
									<option value="0"><?php echo lang('ad_place_choise');?></option>
									<?php echo $place;?>
								</select>
									<span class="tip">*</span></td>
							</tr>
							<tr>
								<td align="right" height="25"><?php echo lang('ad_type');?></td>
								<td height="25" align="left">
								<input name="adtype" type="radio" value="image" <?php if($ad_customer['adtype'] == 'image') echo 'checked="checked"';?> /> 
									<?php echo lang('ad_type_image');?>&nbsp;<span class="tip"><?php echo lang('ad_tip_type_image');?></span>
								<input type="radio" name="adtype" value="flash" <?php if($ad_customer['adtype'] == 'flash') echo 'checked="checked"';?>/> <?php echo lang('ad_type_flash');?>&nbsp;<span class="tip"><?php echo lang('ad_tip_type_flash');?>&nbsp;*</span></td>
							</tr>
							<tr>
								<td align="right" height="25"><?php echo lang('ad_link');?></td>
								<td height="25" align="left"><input name="link" type="text"
									id="link" value="<?php echo $ad_customer['link'];?>" size="50" maxlength="200" />
									<span class="tip"><?php echo lang('ad_tip_link');?></span></td>
							</tr>
							<tr>
								<td align="right" height="25"><?php echo lang('com_title_upload_image');?></td>
								<td align="left"><input name="path" type="text" id="path" value="<?php echo $ad_customer['path'];?>"
									size="50" maxlength="255" />									<input name="b_upload" type="button" class="button" id="b_upload" value="<?php echo lang('com_button_upload');?>" />
									<span class="tip"><?php echo lang('ad_tip_path');?></span></td>
							</tr>
							<tr>
								<td height="25" align="right"><?php echo lang('ad_time');?></td>
								<td align="left"><?php echo lang('com_from');?>
									<input name="begintime" type="text" class="Wdate" id="begintime" onfocus="WdatePicker()" value="<?php echo $ad_customer['begintime'];?>"
									size="15" maxlength="10"/>
									<?php echo lang('com_to');?>
									<input name="finishtime" type="text" class="Wdate" id="finishtime" onfocus="WdatePicker()" value="<?php echo $ad_customer['finishtime'];?>"
									size="15" maxlength="10" />
									<span class="tip">*</span></td>
							</tr>
							<tr>
								<td height="25" align="right"><?php echo lang('ad_isactive');?></td>
								<td align="left">
								<input name="isactive" type="radio" value="1" <?php if($ad_customer['adtype'] == 1) echo 'checked="checked"';?>/>
									<?php echo lang('ad_isactive_1');?>
									<input type="radio" name="isactive" value="0" <?php if($ad_customer['adtype'] == 0) echo 'checked="checked"';?>/> <?php echo lang('ad_isactive_0');?>&nbsp;<span class="tip">*</span></td>
							</tr>
							<tr>
								<td height="25" align="right"><?php echo lang('com_remark');?></td>
								<td align="left"><input name="remark" type="text" id="remark" value="<?php echo $ad_customer['remark'];?>" size="30" maxlength="20" />
									<span class="tip"><?php printf(lang('com_tip_admin_visible'), 20);?></span></td>
							</tr>

							<tr>
								<td colspan="2" height="25"><input name="id" type="hidden" id="id" value="<?php echo $ad_customer['id']?>" />
									<input name="s_ad_customer_edit" type="submit" class="button" id="s_ad_customer_edit" value="<?php echo lang('com_button_edit');?>" />
									<input name="Submit2" type="reset" class="button" value="<?php echo lang('com_button_reset');?>" /></td>
							</tr>
						</table>
						</form>
						</td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
		<td class="table_right_side"></td>
	</tr>
	<tr>
		<td valign="middle" class="table_bottom_left">&nbsp;</td>
		<td height="17" valign="top" class="table_bottom_middle">&nbsp;</td>
		<td class="table_bottom_right">&nbsp;</td>
	</tr>
</table>
</body>
</html>
